import request from '@/utils/request'

// 查询订单担保人列表
export function listOrderDbrRecord(query) {
  return request({
    url: '/business/orderDbrRecord/list',
    method: 'get',
    params: query
  })
}

// 查询订单担保人详细
export function getOrderDbrRecord(id) {
  return request({
    url: '/business/orderDbrRecord/' + id,
    method: 'get'
  })
}

// 新增订单担保人
export function addOrderDbrRecord(data) {
  return request({
    url: '/business/orderDbrRecord',
    method: 'post',
    data: data
  })
}

// 修改订单担保人
export function updateOrderDbrRecord(data) {
  return request({
    url: '/business/orderDbrRecord',
    method: 'put',
    data: data
  })
}

// 删除订单担保人
export function delOrderDbrRecord(id) {
  return request({
    url: '/business/orderDbrRecord/' + id,
    method: 'delete'
  })
}
